package com.lab.logtrack;


import android.util.Log;

/**
 * Created by ak
 */
public class DebugLogger implements Logger {
    public static final String TAG = "cuitrip_Debug";

    @Override
    public void e(String paramString) {
        if (paramString != null) {
            Log.e(TAG, paramString);
        }
    }

    @Override
    public void e(String paramString, Throwable paramThrowable) {
        if (paramString != null && paramThrowable != null) {
            Log.e(TAG, paramString, paramThrowable);
        }
    }

    @Override
    public void w(String paramString) {
        if (paramString != null) {
            Log.w(TAG, paramString);
        }
    }

    @Override
    public void w(String paramString, Throwable paramThrowable) {
        if (paramString != null && paramThrowable != null) {
            Log.w(TAG, paramString, paramThrowable);
        }
    }

    @Override
    public void i(String paramString) {
        if (paramString != null) {
            Log.i(TAG, paramString);
        }
    }

    @Override
    public void i(String paramString, Throwable paramThrowable) {
        if (paramString != null && paramThrowable != null) {
            Log.i(TAG, paramString, paramThrowable);
        }
    }

    @Override
    public void d(String paramString) {
        if (paramString != null) {
            Log.d(TAG, paramString);
        }
    }

    @Override
    public void d(String paramString, Throwable paramThrowable) {
        if (paramString != null && paramThrowable != null) {
            Log.d(TAG, paramString, paramThrowable);
        }
    }

    @Override
    public void v(String paramString) {
        if (paramString != null) {
            Log.v(TAG, paramString);
        }
    }

    @Override
    public void v(String paramString, Throwable paramThrowable) {
        if (paramString != null && paramThrowable != null) {
            Log.v(TAG, paramString, paramThrowable);
        }
    }

    @Override
    public LogLevel getLogLevel() {
        return LogLevel.DEBUG;
    }

    @Override
    public boolean isDebug() {
        return true;
    }
}
